using EasyDapr.Infrastructure.App.Dtos;
using EasyDapr.Infrastructure.Response;
using FluentValidation;
using MediatR;

namespace InventoryService.Application.Requests
{
    /// <summary>
    /// 读取库存信息请求类
    /// </summary>
    public class GetInventoryRequest:IRequest<ApiResult<InventoryDto>>
    {
        public GetInventoryRequest(){}
        public GetInventoryRequest(string id)
        {
            Id = id;
        }
        public string Id { get; set; }
    }
    public class GetInventoryValidator : AbstractValidator<GetInventoryRequest>
    {
        public GetInventoryValidator()
        {
            // RuleFor(p => p.Id).NotNull();
        }
    }
}